package com.factory_strategy_template;

import org.springframework.stereotype.Component;

@Component
public class zhangsanHandler extends Handler{

    public void printName(){
        System.out.println("zhangsan");
    }

    @Override
    public void printName2() {

    }

    @Override
    public void afterPropertiesSet() throws Exception {
           HandlerFactory.registerHandler("张三",this);
    }
}
